/*
 * 杭州绿漫科技有限公司
 * Copyright (c) 16-6-21 下午8:49.
 */

package com.jams.goodox.entity;

import com.jams.goodox.utils.JSONHelper;

import org.json.JSONObject;

import java.io.Serializable;

public class AppraiseInfo implements Serializable {
	/**
     * 
     */
	private static final long serialVersionUID = 1L;
	
	String appraiseContent;
	String objId;
	String appraiseQuality;
	String appraiseSpeed;
	String orderid;
	
	int oldAppraiseQuality;
	String replyUser;
	String oldAppraiseTime;
	String orderNum;
	String oldAppraiseContent;
	String replyContent;
	int appraiseType;
	String replyTime;
	String userAddress;
	String appraiseAgain; // 表示是否已经修改评价， 0是没有，1 是已经修改。
	
	String appraiseUser;
	int oldAppraiseSpeed;
	int isReply;
	String appraiseUserName;
	
	public static AppraiseInfo buildBean(JSONObject o) {
		AppraiseInfo info = new AppraiseInfo();
		info.setAppraiseAgain(JSONHelper.getString(o, "appraiseAgain"));
		info.setAppraiseContent(JSONHelper.getString(o, "appraiseContent"));
		info.setAppraiseQuality(JSONHelper.getString(o, "appraiseQuality"));
		info.setAppraiseSpeed(JSONHelper.getString(o, "appraiseSpeed"));
		info.setAppraiseType(JSONHelper.getInt(o, "appraiseType"));
		info.setAppraiseUser(JSONHelper.getString(o, "appraiseUser"));
		info.setAppraiseUserName(JSONHelper.getString(o, "appraiseUserName"));
		return info;
	}
	
	public int getOldAppraiseQuality() {
		return oldAppraiseQuality;
	}
	
	public void setOldAppraiseQuality(int oldAppraiseQuality) {
		this.oldAppraiseQuality = oldAppraiseQuality;
	}
	
	public String getReplyUser() {
		return replyUser;
	}
	
	public void setReplyUser(String replyUser) {
		this.replyUser = replyUser;
	}
	
	public String getOldAppraiseTime() {
		return oldAppraiseTime;
	}
	
	public void setOldAppraiseTime(String oldAppraiseTime) {
		this.oldAppraiseTime = oldAppraiseTime;
	}
	
	public String getOrderNum() {
		return orderNum;
	}
	
	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}
	
	public String getOldAppraiseContent() {
		return oldAppraiseContent;
	}
	
	public void setOldAppraiseContent(String oldAppraiseContent) {
		this.oldAppraiseContent = oldAppraiseContent;
	}
	
	public String getReplyContent() {
		return replyContent;
	}
	
	public void setReplyContent(String replyContent) {
		this.replyContent = replyContent;
	}
	
	public int getAppraiseType() {
		return appraiseType;
	}
	
	public void setAppraiseType(int appraiseType) {
		this.appraiseType = appraiseType;
	}
	
	public String getReplyTime() {
		return replyTime;
	}
	
	public void setReplyTime(String replyTime) {
		this.replyTime = replyTime;
	}
	
	public String getUserAddress() {
		return userAddress;
	}
	
	public void setUserAddress(String userAddress) {
		this.userAddress = userAddress;
	}
	
	public String getAppraiseAgain() {
		return appraiseAgain;
	}
	
	public void setAppraiseAgain(String appraiseAgain) {
		this.appraiseAgain = appraiseAgain;
	}
	
	public String getAppraiseUser() {
		return appraiseUser;
	}
	
	public void setAppraiseUser(String appraiseUser) {
		this.appraiseUser = appraiseUser;
	}
	
	public int getOldAppraiseSpeed() {
		return oldAppraiseSpeed;
	}
	
	public void setOldAppraiseSpeed(int oldAppraiseSpeed) {
		this.oldAppraiseSpeed = oldAppraiseSpeed;
	}
	
	public int getIsReply() {
		return isReply;
	}
	
	public void setIsReply(int isReply) {
		this.isReply = isReply;
	}
	
	public String getAppraiseUserName() {
		return appraiseUserName;
	}
	
	public void setAppraiseUserName(String appraiseUserName) {
		this.appraiseUserName = appraiseUserName;
	}
	
	public String getAppraiseContent() {
		return appraiseContent;
	}
	
	public void setAppraiseContent(String appraiseContent) {
		this.appraiseContent = appraiseContent;
	}
	
	public String getObjId() {
		return objId;
	}
	
	public void setObjId(String objId) {
		this.objId = objId;
	}
	
	public String getAppraiseQuality() {
		return appraiseQuality;
	}
	
	public void setAppraiseQuality(String appraiseQuality) {
		this.appraiseQuality = appraiseQuality;
	}
	
	public String getAppraiseSpeed() {
		return appraiseSpeed;
	}
	
	public void setAppraiseSpeed(String appraiseSpeed) {
		this.appraiseSpeed = appraiseSpeed;
	}
	
	public String getOrderid() {
		return orderid;
	}
	
	public void setOrderid(String orderid) {
		this.orderid = orderid;
	}
}
